package com.bootdo.order.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.order.dao.ReplenishmentOrderDao;
import com.bootdo.order.domain.ReplenishmentOrderDO;
import com.bootdo.order.service.ReplenishmentOrderService;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class ReplenishmentOrderServiceImpl implements ReplenishmentOrderService {
	@Autowired
	private ReplenishmentOrderDao replenishmentOrderDao;
	
	@Override
	public ReplenishmentOrderDO get(Long id){
		return replenishmentOrderDao.get(id);
	}
	
	@Override
	public List<ReplenishmentOrderDO> list(Map<String, Object> map){
		return replenishmentOrderDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return replenishmentOrderDao.count(map);
	}
	
	@Override
	public int save(ReplenishmentOrderDO replenishmentOrder){
		return replenishmentOrderDao.save(replenishmentOrder);
	}
	
	@Override
	public int update(ReplenishmentOrderDO replenishmentOrder){
		return replenishmentOrderDao.update(replenishmentOrder);
	}
	
	@Override
	public int remove(Long id){
		return replenishmentOrderDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return replenishmentOrderDao.batchRemove(ids);
	}
	
}
